unit UCadCargo;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Modelo, DB, DBTables, Grids, DBGrids, StdCtrls, Buttons,
  CheckLst, ExtCtrls, Mask, DBCtrls, UDPTOUteis;

type
  TFCadCargos = class(TFModelo)
    qPadraoCGOCODIGO: TIntegerField;
    qPadraoCGODESCRICAO: TStringField;
    Lb1: TLabel;
    dbedtCGOCODIGO: TDBEdit;
    Lb2: TLabel;
    dbedtCGODESCRICAO: TDBEdit;
    procedure qPadraoAfterInsert(DataSet: TDataSet);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FCadCargos: TFCadCargos;

implementation

{$R *.dfm}

procedure TFCadCargos.qPadraoAfterInsert(DataSet: TDataSet);
begin
  inherited;

  qPadrao.FieldByName('CGOCODIGO').AsInteger := DPTOProximo('CARGO');

end;

end.
